//头文件
#ifndef DOUBAOAPI_H
#define DOUBAOAPI_H

#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QSslConfiguration>
#include <QString>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonArray>
#include <QEventLoop>
#include <QObject>  // 添加QObject包含

class DoubaoAI : public QObject
{
    Q_OBJECT
public:
    DoubaoAI();
    QString DoubaoAI_request(QString& question);
private:
    QString OPENAI_BASE_URL = "https://ark.cn-beijing.volces.com/api/v3/chat/completions";
    QString OPENAI_API_KEY = "d551d7bf-f194-4265-b326-1374a335d3b9";
    QString OPENAI_MODEL = "ep-20250829085205-qw55h";
};

#endif // DOUBAOAPI_H
